<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<style>
  *{
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
  }
  /* body{
    perspective: 800px;
   } */
  .box{
    width: 400px;
    height: 500px;
    /* background-color:red; */
    margin: 0 auto;
  }
  ul{
    padding-top: 10px;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
  }

  li{
    position: relative;
    width: 170px;
    height: 130px;
    border:1px solid #000;
    /* float: left; */
    /* margin: 10px 25px; */
    overflow: hidden;
  }
  li>img{
    position: absolute;
    top: 0;
    left: 0;
    width: 170px;
    height: 130px;
    transition: all 0.3s linear;
    backface-visibility: hidden;
    z-index: 9;
  }
  li>p{
    /* display: none; */
    position: absolute;
    top: 0px;
    left: 0;
    width: 170px;
    height: 130px;
    line-height: 130px;
    font-size: 25px;
    text-align: center;
    background-color:rgb(255, 111, 55);
    transition: all 0.3s linear;
   transform:rotateX(-180deg)
  }
</style>
<body>
  <div class="box">
    <ul>
      <li><img src="./images/55.jpg" alt=""><p>美丽</p></li>
      <li><img src="./images/44.jpg" alt=""><p>美丽</p></li>
      <li><img src="./images/66.jpg" alt=""><p>美丽</p></li>
      <li><img src="./images/77.jpg" alt=""><p>美丽</p></li>
      <li><img src="./images/88.jpg" alt=""><p>美丽</p></li>
      <li><img src="./images/44.jpg" alt=""><p>美丽</p></li>
    </ul>
  </div>
  <script src="jQuery.js"></script>
  <script>
    $('li').hover(function(){
      var lis = $('li').index(this);
        $('li img').eq(lis).css('transform','rotateX(180deg)');
    },function(){
      var lis = $('li').index(this);
      $('li img').eq(lis).css('transform','rotateX(0deg)');
    });

    $('li').hover(function(){
      var lis = $('li').index(this);
        $('li p').eq(lis).css('transform','rotateX(0deg)');
    },function(){
      var lis = $('li').index(this);
      $('li p').eq(lis).css('transform','rotateX(180deg)');
    });
         
  </script>
</body>
</html>